<div id="root">
    <qf-nav-bar title="商品创建"></qf-nav-bar>
    
    <h1>表单组建</h1>

    <qf-table @submit="submitFn" :state="false" ref="a"></qf-table>
    <qf-table @submit="submitFn" :state="false"></qf-table>
    <qf-table @submit="submitFn" :state="false"></qf-table>
    <qf-table @submit="submitFn" :state="false"></qf-table>
    <qf-table @submit="submitFn" :state="false"></qf-table>

    <button @click="submitFn">表单组件外面的按钮，点击请求借口</button>    
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<link rel="stylesheet" href="./qfui.css">
<script src="./qfui.js"></script>
<script>
const vm = new Vue({
    el: "#root",
    data: {
    },
    methods:{
        submitFn(){
            console.log(this.$refs.a.formData);
            alert('商品创建请求借口...')
        }
    }
})
</script>